package com.bosssoft.gateway.service.feignclient;


import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 描述: 鉴权服务客户端
 * 作者: lljm
 * 日期: 2024/6/23
 */

//根据服务名调用
//TODO 后续服务名称可能更改
@FeignClient(name = "GatewayAuthorizationApp",contextId = "28228", fallbackFactory = AuthorizationFallbackFactory.class)
public interface AuthorizationFeignClient {

    @GetMapping("/api/v1/permission/authorization")
    Integer roleAuthorization(@RequestParam("token") String token, @RequestParam("url") String url);

//
//    @ApiOperation(tags = "开放URL查询", value = "/common/resource")
//    @GetMapping(value = "/v1/common/resource")
//    Boolean commonResource(@RequestParam("url") String url);
}
